<?php
/* @var $this CategorysController */
/* @var $dataProvider CActiveDataProvider */

$this->pageTitle = $model->category_name . ' - ' . Yii::app()->name;

if($parentCategory)
{
    $this->breadcrumbs[$parentCategory->category_name] = Yii::app()->createAbsoluteUrl('categorys/list', array('alias' => $parentCategory->category_alias));
}

$this->parentCategory = $parentCategory;

$this->breadcrumbs[$model->category_name] = '#';
?>

<h1 style="color:#C00"><?php echo $model->category_name; ?></h1>
<ul style="padding-right: 20px;">
    <?php
    $this->widget('zii.widgets.CListView', array(
        'dataProvider' => $postModel->search(),
        'itemView' => '_view',
    ));
    ?>
</ul>

